home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / batchut / hdweelvl.zip / HDWEELVL.ASM < prev    next >
Assembly Source File  |  1988-07-18  |  867b  |  29 lines

  1.          TITLE HDWEELVL
  2. ; HDWEELVL.ASM  07-17-88
  3. ; This program is in the public domain.
  4. ; Reads ROM BIOS data, and sets errorlevel 
  5. ; to value of hardware byte: i.e.,
  6. ; 255 = 8088  Original PC
  7. ; 253 = 80286 AT or PS/2 M 50/60
  8. ; 248 = 80386 PS/2 M 80 etc.
  9. ;
  10.          DOSSEG
  11.          .MODEL small
  12.          .STACK 100H
  13. ;
  14. Cseg     Segment Para Public 'CODE'
  15.          Assume CS:Cseg,DS:Cseg,ES:Nothing
  16. Main:    PUSH   DS         
  17.          MOV    DX, 0f000h  ; ROM BIOS segment
  18.          MOV    DS, DX     
  19.          MOV    BX, 0fffeh  ; Point to hardware byte
  20.          MOV    AL, BYTE PTR [BX]  ; Get hardware byte into AL
  21.          MOV    AH, 04CH  ; With errorlevel
  22.          INT    21h       ; Terminate setting errorlevel from AL
  23.          RET               
  24. ;                     
  25.          end    Main
  26. ;
  27.  
  28. ;                     
  29.          end